
/*
 *GM
 */
function selectModule(rightid) {
  var url = "module.x?op=select";
  var retVal = window.showModalDialog(url,null,"dialogwidth:800px;dialogheight:700px");  
  if(retVal){  
  retArr = retVal.split("_");
  _obj("id_r_moduleName").value= retArr[1];
  _obj("id_r_moduleId").value= retArr[1];
  }
}

function addRight() {
  _obj("id_op").value = "edit";
  _obj("listFrm").submit();
}

function delRight() {
  if (confirm('是否要删除?')) {
    commit('listFrm',[['id_op','delete']]);
  }
}

function addRightSettings() {
  _obj("id_op").value = "edit";
  _obj("listFrm").submit();
}

function delRightSettings() {
  if (confirm('是否要删除?')) {
    commit('listFrm',[['id_op','delete']]);
  }
}